<template>
	<view>
		<web-view :src="webUrl"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				type:1,
				webUrl:'https://api.mo-shu.vip/protocol/index.html'
			};
		},
		onLoad(ops) {
			this.type=ops.type
			let title=""
			if(this.type==1){
				title='用户协议'
				this.webUrl="https://api.mo-shu.vip/protocol/index.html"
			}else{
				title='隐私政策'
				this.webUrl="https://api.mo-shu.vip/protocol/policy.html"
			}
			uni.setNavigationBarTitle({
				title
			})
		}
	}
</script>

<style lang="scss">

</style>
